export function getToken(){
    return localStorage.getItem("token")
}
 
export function setToken(token){
    localStorage.setItem("token",token)
}
export function clearToken(){
    localStorage.removeItem("token")
}
export function setUserName(username){
    localStorage.setItem("username",username)
}
export function getUserName(){
    return localStorage.getItem("username")
}
export function clearUserName(){
    localStorage.removeItem("username")
}
export function isLogined(){
    if(localStorage.getItem("token")){
        return true
    }
    return false
}